a5f8393b4e53d91067a4b3a3877b46f9bc355296,app/controllers/CountryIndex.java,CountryIndex,read,#String#boolean#,27

Before Change


      return notFound("Not found");
    }

    QueryContext queryContext = (QueryContext) ctx().args.get("queryContext");

    queryContext.setFetchSource(new String[]{
      "about.@id", "about.@type", "about.name", "about.alternateName", "about.location", "about.image",

After Change


    scope.put("countryAggregation", countryAggregation);
    scope.put("embed", embed);

    if (ctx().request().accepts("text/html")) {
      return ok(render(Countries.getNameFor(id, getLocale()), "CountryIndex/read.mustache", scope));
    } else {
      return ok(resources.toResource().toString()).as("application/json");